
public class Vehicle {
	int wheels;      //车轮数  
	float weight;    //车重
	String brand;    //品牌
	Vehicle(){
		
	}
	Vehicle(int wheels,float weight){
		this.wheels=wheels;
		this.weight=weight;
		System.out.println("enter super class!");
	}
	
	Vehicle(int wheels,float weight,String brand){
		this.wheels=wheels;
		this.weight=weight;
		this.brand=brand;
		System.out.println("enter super class!");
	}
	int getWheels(){
		return wheels;
	}
	float getWeight(){
		return weight;
	}
	String getBrand(){
		return brand;
	}
	void setWheels(int wheels){
		this.wheels=wheels;
	}
	void setWeight(float weight){
		this.weight=weight;
	}
	void setBrand(String brand){
		this.brand=brand;
	}
	
	void show()
	{
		System.out.println("enter super class method...");
		System.out.println("车轮："+wheels);
		System.out.println("车重："+weight);
		System.out.println("品牌:"+brand);
	}
} 

